AlarmManagerCompat
Compatibility library for AlarmManager with fallbacks for older platforms.
Functions
Link copied to clipboard
Called to check if the caller can schedule exact alarms.
Link copied to clipboard
open fun setAlarmClock(@NonNull alarmManager: @NonNull AlarmManager, triggerTime: Long, @NonNull showIntent: @NonNull PendingIntent, @NonNull operation: @NonNull PendingIntent)
Schedule an alarm that represents an alarm clock.
Link copied to clipboard
open fun setAndAllowWhileIdle(@NonNull alarmManager: @NonNull AlarmManager, type: Int, triggerAtMillis: Long, @NonNull operation: @NonNull PendingIntent)
Like set, but this alarm will be allowed to execute even when the system is in low-power idle modes.
Link copied to clipboard
open fun setExact(@NonNull alarmManager: @NonNull AlarmManager, type: Int, triggerAtMillis: Long, @NonNull operation: @NonNull PendingIntent)
Schedule an alarm to be delivered precisely at the stated time.
Link copied to clipboard
open fun setExactAndAllowWhileIdle(@NonNull alarmManager: @NonNull AlarmManager, type: Int, triggerAtMillis: Long, @NonNull operation: @NonNull PendingIntent)
Like setExact, but this alarm will be allowed to execute even when the system is in low-power idle modes.